<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">
			<div class="grid-body no-border email-body">
				<?php
				/* @var $this SeolinksController */
				/* @var $model Seolinks */


				$this->breadcrumbs = array(
					'Seolinks' => array('index'),
					'Управление',
				);
				?>

				<?php
				$this->widget('bootstrap.widgets.TbGridView', array(
					'id' => 'seolinks-grid',
					'dataProvider' => $model->search(),
					'filter' => $model,
					'columns' => array(
						//'linkId',
						array(
							'name' => 'linkId',							
							'filter' => '',
						),
						//'linkType',
						array(
							'name' => 'linkType',
							'header' => 'Позиция',
							'filter' => array('bottom' => 'Нижний', 'top' => 'Верхний'),
							'value' => '($data->linkType=="bottom")?("Нижний"):("Верхний")'
						),
						//'linkActive',
						array(
							'name' => 'linkActive',
							'header' => 'Статус',
							'filter' => array('1' => 'Опубликован', '0' => 'Не опубликован'),
							'value' => '($data->linkActive=="1")?("Опубликован"):("Не опубликован")'
						),
						array(
							'name' => 'linkModels',	
							'header' => 'Страницы',
							'value' => 'Seolinks::getUrl($data->linkModels)',
							'htmlOptions'=>array('style'=>'width:450px'),
							'type' => 'raw',
						),
						//'linkLastShowed',
						'linkContent:html',
						'linkModelCount',
						
						array(
							'class' => 'bootstrap.widgets.TbButtonColumn',
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>